home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Programmation / Gooey1.3.1 / C++ Templates / Alert.c next >
Text File  |  1993-12-29  |  3KB  |  122 lines

  1. $$Loop Alerts
  2. $$Message User Alert, u:$Worksheet.name$.cp
  3.  
  4. $$File u:$Worksheet.name$.cp
  5. /*  $Worksheet.name$                                 Handle this alert */
  6. /*  $CopyRight$ */
  7.  
  8. /*    File name:  $Worksheet.name$
  9.     Function:  Handle this alert.
  10. $$if Alert.Stop
  11.     This is a STOP alert, it is used to inform the user that data is about to be lost.
  12.     It is also used for fatal type errors and tells the user about the error.
  13. $$endif
  14. $$if Alert.Note
  15.     This is a NOTE alert, it is used to inform the user of some general information.
  16.     This alert is not used if there is a possibility of losing any data.
  17. $$endif
  18. $$if Alert.Caution
  19.     This is a CAUTION alert, it is used to inform the user that if the current path
  20.     is taken then data may be lost.  The user can change the present course and
  21.     save the data.  This is the type of alert used to tell the user that he needs to
  22.     save the data before going on.
  23. $$endif
  24.  
  25.     This alert is called when:
  26.  
  27.     The choices in this alert allow for:
  28.         
  29.     History: $Date$ Original by $Author$
  30.  
  31. */
  32.  
  33. #include "mmCommon$Prototype.name$.h"    /* Common */
  34. #include "Common$Prototype.name$.h"        /* Common */
  35.  
  36. /* ======================================================= */
  37. /* ======================================================= */
  38.  
  39. /* Initialize the alert variables */
  40.  
  41. void CA$Worksheet.name$::Init()
  42. {
  43. inherited::Init();
  44. }
  45.  
  46. $$if Option.EXTRAHOOKS
  47. /* ======================================================= */
  48.  
  49. /* Handle setup necessary for first time in */
  50.  
  51. void CA$Worksheet.name$::DoFirstTime()
  52. {
  53. inherited::DoFirstTime();
  54. }
  55.  
  56. /* ======================================================= */
  57.  
  58. /* Handle item pressed in alert */
  59.  
  60. void CA$Worksheet.name$::DoItemHit(short itemHit)
  61. {
  62.  
  63.  
  64. inherited::DoItemHit(itemHit);
  65.  
  66. $$Loop Control.type = Button
  67. if (itemHit == ResA_$Control.name$)                /* Handle the Button being pressed */
  68.     {
  69.     }
  70.  
  71. $$EndLoop Control.type
  72. $$Loop Control.type = UButton
  73. if (itemHit == ResA_$Control.name$)                /* Handle the Button being pressed */
  74.     {
  75.     }
  76.  
  77. $$EndLoop Control.type
  78. $$Loop Control.type = HotRect
  79. $$if Control.HotSpot
  80. if (itemHit == ResA_$Control.name$)                /* Handle the HotSpot being pressed */
  81.     {
  82.     }
  83.  
  84. $$endif Control.HotSpot
  85. $$EndLoop
  86. $$Loop Control.type = Picture
  87. $$if Control.NonGraphic
  88. if (itemHit == ResA_$Control.name$)                /* Handle the Picture being pressed */
  89.     {
  90.     }
  91.  
  92. $$endif Control.NonGraphic
  93. $$EndLoop
  94. $$Loop Control.type = Icon
  95. $$if Control.NonGraphic
  96. if (itemHit == ResA_$Control.name$)                /* Handle the Icon being pressed */
  97.     {
  98.     }
  99.  
  100. $$endif Control.NonGraphic
  101. $$EndLoop
  102. $$Loop Control.type = Sicn
  103. $$if Control.NonGraphic
  104. if (itemHit == ResA_$Control.name$)                /* Handle the Sicn being pressed */
  105.     {
  106.     }
  107.  
  108. $$endif Control.NonGraphic
  109. $$EndLoop
  110. }
  111.  
  112. /* ======================================================= */
  113.  
  114. $$endif Option.EXTRAHOOKS
  115.  
  116. /* ======================================================= */
  117. /* ======================================================= */
  118. $$CloseFile
  119. $$EndLoop
  120.  
  121.  
  122.